Fix undecorated windows
authorMatthias Clasen <mclasen@redhat.com>
Fri, 21 Mar 2014 19:39:46 +0000 (15:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Mar 2014 19:39:46 +0000 (15:39 -0400)
Setting windows undecorated was broken by some of the recent
shadow width changes. We need to ensure that shadow width is
zero for undecorated windows, then things work again.

gtk/gtkwindow.c

index 3dc11728e3902d3279aea655b0dd3628e201943e..80bab408364020fc9c45e5e1aa1682385f45f1c4 100644 (file)
@@ -6562,7 +6562,8 @@ get_shadow_width (GtkWidget *widget,
 
   *shadow_width = border;
 
-  if (!priv->client_decorated)
+  if (!priv->decorated ||
+      !priv->client_decorated)
     return;
 
   if (priv->maximized ||